package com.cgq.base.service.impl;
import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Component;
import com.cgq.base.dao.BaseDao;
import com.cgq.base.service.BaseService;
import com.cgq.utils.PropertiesUtil;

@Component
public abstract class BaseServiceImpl<T> implements BaseService<T> {

	protected BaseDao<T> baseDao;
	
	public void save(T entity) {
		baseDao.save(entity);
	}

	public void update(T entity) {
		baseDao.update(entity);
	}

	public void delete(String[] ids) {
		baseDao.delete(ids);
	}

	public T find(String id) {
		return baseDao.find(id);
	}
	
}
